Carbon


GetMenuItemTextEncoding

Header: Menus.h Carbon status: Supported

Obtains the text encoding used for a menu item’s text.

OSErr GetMenuItemTextEncoding (
    MenuHandle inMenu, 
    SInt16 inItem, 
    TextEncoding *outScriptID
);
inMenu

A handle to the menu that contains the menu item whose text encoding you wish to get.

inItem

An integer representing the item number of the menu item.

outScriptID

A pointer to a TextEncoding value. On return, the value is set to the script code of the text encoding used in the menu item’s text.

function result

A result code.

DISCUSSION

If a menu item has a command code of 0x1C when GetMenuItemTextEncoding is called, GetMenuItemTextEncoding gets the value in the icon field of the menu item’s menu resource.

See also the function SetMenuItemTextEncoding.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when CarbonLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CarbonLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)